<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%-- <%@ page import="com.iWen.survey.dto.User" %>--%>
<div id="banner">
    <div class="text">
        <%--<%
        User user=(User)session.getAttribute("user");
        if(user==null){ %>--%>
        <a href="index">首页</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <%--<%}else{ %>--%>
            <c:choose>
                <c:when test="${phone!=null}">
                    ${phone}, 欢迎您登录
                </c:when>
                <c:otherwise>
                    <c:if test="${user!=null}">
                        &nbsp;&nbsp;
                        ${user.nickname}, 欢迎您登录
                    </c:if>
                    <c:if test="${user==null}">
                        [<a href="userLogin.jsp">登录</a>]
                        &nbsp;&nbsp;[<a href="userReg.jsp">注册</a>]
                    </c:if>
                </c:otherwise>
            </c:choose>
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <a href="Survey_list">问卷列表</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <a href="Survey_Code" target="_self">访问私有问卷</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <a href="/user/User_Map" >用户分布</a>&nbsp;&nbsp;
        <a href="logout">安全退出</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <a href="login.jsp">管理员登陆</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    </div>
</div>

